# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Sergey Safarov <s.safarov@gmail.com>
pkgname=perl-math-basecnv
pkgver=1.14
pkgrel=2
pkgdesc="Math::BaseCnv perl module"
url="https://metacpan.org/release/Math-BaseCnv/"
arch="noarch"
license="GPL-3.0-only"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PI/PIP/Math-BaseCnv-$pkgver.tgz"

builddir="$srcdir"/Math-BaseCnv-$pkgver

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="0100dcf8786fe0983bbddffb2a44876d75cf023b78a04687b4d410c3667e44606f8315fb30ee5ca4efd26d8784be8af07cd810813e72d9b0c9ae16725e09a5e6  Math-BaseCnv-1.14.tgz"
